/**
 * 业务数据管理API
 */
import request from './request'

/**
 * 获取用户端用户列表
 */
export function getBusinessUsers(params) {
  return request({
    url: '/admin/business/users',
    method: 'get',
    params
  })
}

/**
 * 获取用户端用户详情
 */
export function getBusinessUserDetail(id) {
  return request({
    url: `/admin/business/users/${id}`,
    method: 'get'
  })
}

/**
 * 获取实名认证列表
 */
export function getIdCardVerifications(params) {
  return request({
    url: '/admin/business/idcard-verifications',
    method: 'get',
    params
  })
}

/**
 * 获取训练记录列表
 */
export function getTrainingRecords(params) {
  return request({
    url: '/admin/business/training-records',
    method: 'get',
    params
  })
}

/**
 * 获取统计概览
 */
export function getStatisticsOverview() {
  return request({
    url: '/admin/business/statistics/overview',
    method: 'get'
  })
}

